import Vue from 'vue'
import Router from 'vue-router'

const IndexPages = () => import('../pages/index.vue')
const College = () => import('../pages/college.vue')
const ChatRoom = () => import('../pages/chatRoom.vue')
const Forum = () => import('../pages/forum.vue')
const UserCenter = () => import('../pages/userCenter.vue')
const ContectUs = () => import('../pages/contectUs.vue')
const IndexTab = () => import('../components/plan/IndexTab.vue')
const IndexContent = () => import('../components/plan/IndexContent.vue')
const TrendCont = () => import('../components/indexchart/trendCont.vue')
const OmissionCont = () => import('../components/indexchart/omissionCont.vue')
const HistoryAward = () => import('../components/history/historyAward.vue')
const PlanTemplate = () => import('../components/artificialplan/planTemplate.vue')
const ArtificialPlan = () => import('../components/artificialplan/artificialplan.vue')
const plancommit = () => import('../components/artificialplan/plancommit.vue')
const ShrinkageTool = () => import('../components/shrinkagetool/shrinkageTool.vue') //时时彩类缩水
const ShrinkageTool123 = () => import('../components/shrinkagetool/shrinkageTool123.vue') // pc蛋蛋、加拿大、江苏快三
const shrinkageToolFivebits= () => import('../components/shrinkagetool/shrinkageToolFivebits.vue') //北京pk10、广东11选5
const shrinkageToolThreebits= () => import('../components/shrinkagetool/shrinkageToolThreebits.vue') //福彩3D

const Bannerpage= () => import('../components/plan/Bannerpage.vue')
const twoStar= () => import('../components/plan/twoStar.vue')          //人工计划-人工计划平台
const twoStarCol= () => import('../components/plan/twoStarCol.vue')        //人工计划-我的收藏计划
const historyverification= () => import('../components/htverification/historyverification.vue')    //历史验证
const calculation= () => import('../components/doublecast/calculation.vue')   //倍投

// 用户中心相关
const radiolist = () => import('../components/usercenter/RadioList.vue')
const txList = () => import('../components/usercenter/TxList.vue')
const MembershipRecharge = () => import('../components/usercenter/MembershipRecharge.vue')
const AddUser = () => import('../components/usercenter/AddUser.vue')
const Adshelf = () => import('../components/usercenter/Adshelf.vue')
const ProfitList = () => import('../components/usercenter/ProfitList.vue') //收益明细
const AddBankCard = () => import('../components/usercenter/AddBankCard.vue') //添加银行卡
const AgentRecharge = () => import('../components/usercenter/AgentRecharge.vue') //代理商充值
const InvitationList = () => import('../components/usercenter/InvitationList.vue') //邀请记录
const ModifyPwd = () => import('../components/usercenter/ModifyPwd.vue') //修改密码
const ModifyUserInfo = () => import('../components/usercenter/ModifyUserInfo.vue') //修改用户信息 
const ShareLink = () => import('../components/usercenter/ShareLink.vue') //分享
const BankCardList = () => import('../components/usercenter/BankCardList.vue') //银行卡列表
const Putforward = () => import('../components/usercenter/Putforward.vue')  //提现输入框
const TxStatus = () => import('../components/usercenter/TxStatus.vue') //提现状态
const webview = () => import('../components/usercenter/payWebview.vue')

const collegeVideo = () => import('../components/college/collegeVideo.vue')  //高手学院图文详情
const collegeSearch = () => import('../components/college/collegeSearch.vue') //高手学院
const searchLookmore = () => import('../components/college/searchLookmore.vue') //高手学院查看更多
const Login = () => import('../components/login/login.vue')  //登录
const QuestionMi = () => import('../components/login/questionMi.vue')  //密保
const Sign = () => import('../components/login/sign.vue')  //注册
const FindPass = () => import('../components/login/FindPass.vue') //找回密码1
const FindPasstwo = () => import('../components/login/FindPasstwo.vue') //找回密码2

const Layout = () => import('../components/Layout.vue')

Vue.use(Router)

export default new Router({
  routes: [
      {
        path: '/',
        component: Login,
      },
      {
        path: '/QuestionMi',
        name:'QuestionMi',
        component: QuestionMi,
      },
      {
        path:'/FindPass',
        name:'FindPass',
        component:FindPass
      },
      {
        path: '/FindPasstwo',  
        name: 'FindPasstwo',  
        component: FindPasstwo
      },
      {
        path:"/sign",
        component:Sign
      },
      {
        path:'/layout',
        component:Layout,
        children:[
          {
            path: '/',  //首页
            name: 'IndexTab',  
            component: IndexTab,
            redirect: '/Bannerpage',
            children:[
              {
                path: '/Bannerpage',  //banner图页面
                name: 'Bannerpage',
                component: Bannerpage
              },
              {
                path: '/IndexContent',  //计划推荐计划组号
                name: 'IndexContent',
                component: IndexContent,
                meta: {
                  keepAlive: true // 需要被缓存
                }
              },
              {
                path: '/historyverification',  //历史验证
                name: 'historyverification',
                component: historyverification,
                meta: {
                  keepAlive: false // 不需要被缓存
                }
              },
              {
                path: '/calculation',  //倍投计算
                name: 'calculation',
                component: calculation,
                meta: {
                  keepAlive: false // 不需要被缓存
                }
              },
              {
                path: '/trendcont',  //走势图表
                name: 'trendcont',
                component: TrendCont,
                meta: {
                  keepAlive: false // 不需要被缓存
                }
              },
              {
                path: '/omissioncont:chartType',  //遗漏分析
                name: 'omissioncont',
                component: OmissionCont,
                meta: {
                  keepAlive: false // 不需要被缓存
                }
              },
              {
                path: '/historyAward',  //开奖历史
                name: 'historyAward',
                component: HistoryAward,
                meta: {
                  keepAlive: false // 不需要被缓存
                }
              },
              {
                path: '/artificialplan',  //人工计划tab
                name: 'artificialplan',
                component: ArtificialPlan,
                meta: {
                  keepAlive: false // 不需要被缓存
                },
                redirect: '/plancommit',
                children: [
                  {
                    path: '/plancommit',  //计划提交(号码验证)
                    name: 'plancommit',
                    component: plancommit
                  },
                  {
                    path: '/twoStar',  //人工计划平台（二星直选）
                    name: 'twoStar',
                    component: twoStar
                  },
                  {
                    path: '/twoStarCol',  //我的收藏计划
                    name: 'twoStarCol',
                    component: twoStarCol
                  },
                  {
                    path: '/planTemplate',  //计划设置模板
                    name: 'planTemplate',
                    component: PlanTemplate
                  },
                ]
              },
              {
                path: '/shrinkagetool',  //缩水工具 时时彩类缩水
                name: 'shrinkagetool',
                component: ShrinkageTool
              },
              {
                path: '/shrinkagetool123',  //缩水工具 pc蛋蛋、加拿大、江苏快三
                name: 'shrinkagetool123',
                component: ShrinkageTool123
              },
              {
                path: '/shrinkagetoolfivebits',  //缩水工具 北京pk10、广东11选5
                name: 'shrinkagetoolfivebits',
                component: shrinkageToolFivebits
              },
              {
                path: '/shrinkagetoolthreebits',  //缩水工具 福彩3D
                name: 'shrinkagetoolthreebits',
                component: shrinkageToolThreebits
              },
          ]
          },
          {
            path: '/college',  //高手学院
            component: College,
          },
          {
            path: '/collegeSearch',  //高手学院
            name: 'collegeSearch',  
            component: collegeSearch
          },
          {
            path: '/searchLookmore',  //高手学院查看更多
            name: 'searchLookmore',  
            component: searchLookmore
          },
          {
            path: '/collegeVideo',  //高手学院信息详情
            name: 'collegeVideo',  
            component: collegeVideo
          },
          {
            path: '/chatroom',  //聊天室
            component: ChatRoom
          },
          {
            path: '/forum',  //论坛
            component: Forum
          },
          {
            path: '/usercenter',  //用户中心
            component: UserCenter
          },
          {
            path: '/contect', //联系我们
            component: ContectUs
          },
          {
            path: '/radiolist',  //用户中心-消息列表
            component: radiolist
          },
          {
            path: '/txList',  //用户中心-提现列表
            component: txList
          },
          {
            path:'/TxStatus/:id', //提现详情
            component:TxStatus
          },
          {
            path: '/MembershipRecharge',  //用户中心-用户充值
            component: MembershipRecharge
          },
          {
            path: '/AgentRecharge',  //用户中心-代理充值
            component: AgentRecharge,
          },
          {
            path: '/webview/:id',  //用户中心-支付窗口
            component: webview,
          },
          {
            path: '/AddUser',  //用户中心-新增会员
            component: AddUser
          },
          {
            path: '/Adshelf',  //用户中心-新增广告
            component: Adshelf
          },
          {
            path: '/ProfitList',  //用户中心-收益明细
            component: ProfitList
          },
          {
            path: '/BankCardList',  //用户中心-银行卡列表
            component: BankCardList
          },
          {
            path: '/InvitationList',  //用户中心-邀请记录
            component: InvitationList
          },
          {
            path: '/Putforward',  //用户中心-提现
            component: Putforward
          },
          {
            path: '/ModifyUserInfo',  //用户中心-修改用户资料
            component: ModifyUserInfo
          },
          {
            path: '/ModifyPwd',  //用户中心-修改密码
            component: ModifyPwd
          },
          {
            path: '/ShareLink',  //用户中心-推广链接
            component: ShareLink
          },
          {
            path: '/AddBankCard',  //用户中心-添加银行卡
            component: AddBankCard
          },
        ]
      },
  ]
})
